home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / usr / include / scribus-ng / prefsstructs.h < prev    next >
Encoding:
C/C++ Source or Header  |  2009-02-05  |  5.5 KB  |  279 lines

  1. /*
  2. For general Scribus (>=1.3.2) copyright and licensing information please refer
  3. to the COPYING file provided with the program. Following this notice may exist
  4. a copyright and/or license notice that predates the release of Scribus 1.3.2
  5. for which a new license (GPL+exception) is in place.
  6. */
  7. #ifndef PREFSSTRUCTS_H
  8. #define PREFSSTRUCTS_H
  9.  
  10. #ifdef HAVE_CONFIG_H
  11. #include "scconfig.h"
  12. #endif
  13.  
  14. #include <QColor>
  15. #include <QString>
  16. #include <QList>
  17. #include <QSet>
  18. #include <QHash>
  19. #include "pdfoptions.h"
  20. #include "scfonts.h"
  21.  
  22. struct checkerPrefs
  23. {
  24.     bool ignoreErrors;
  25.     bool autoCheck;
  26.     bool checkGlyphs;
  27.     bool checkOverflow;
  28.     bool checkOrphans;
  29.     bool checkPictures;
  30.     bool checkResolution;
  31.     double minResolution;
  32.     double maxResolution;
  33.     bool checkTransparency;
  34.     bool checkAnnotations;
  35.     bool checkRasterPDF;
  36.     bool checkForGIF;
  37.     bool ignoreOffLayers;
  38. };
  39.  
  40. typedef QMap<QString, checkerPrefs> CheckerPrefsList;
  41.  
  42. struct typoPrefs
  43. {
  44.     int valueSuperScript;
  45.     int scalingSuperScript;
  46.     int valueSubScript;
  47.     int scalingSubScript;
  48.     int valueSmallCaps;
  49.     int autoLineSpacing;
  50.     int valueUnderlinePos;
  51.     int valueUnderlineWidth;
  52.     int valueStrikeThruPos;
  53.     int valueStrikeThruWidth;
  54.     double valueBaseGrid;
  55.     double offsetBaseGrid;
  56. };
  57.  
  58. struct windowPrefs
  59. {
  60.     int xPosition;
  61.     int yPosition;
  62.     int width;
  63.     int height;
  64.     bool visible;
  65.     bool docked;
  66.     bool maximized;
  67. };
  68.  
  69. struct guidesPrefs
  70. {
  71.     bool gridShown;
  72.     QColor majorColor;
  73.     double majorGrid;
  74.     double minorGrid;
  75.     QColor minorColor;
  76.     double guideRad;
  77.     int grabRad;
  78.     bool framesShown;
  79.     bool guidesShown;
  80.     bool colBordersShown;
  81.     bool marginsShown;
  82.     bool baseShown;
  83.     bool linkShown;
  84.     bool showPic;
  85.     bool showControls;
  86.     bool showBleed;
  87.     bool rulerMode;
  88.     bool rulersShown;
  89.     bool layerMarkersShown;
  90.     bool before;
  91.     QColor guideColor;
  92.     QColor baseColor;
  93.     QColor margColor;
  94. };
  95.  
  96. struct toolPrefs
  97. {
  98.     /* Texttool */
  99.     QString defFont;
  100.     int defSize;
  101.     QString dPenText;
  102.     int dTextPenShade;
  103.     QString dStrokeText;
  104.     int dTextStrokeShade;
  105.     QString dTextBackGround;
  106.     QString dTextLineColor;
  107.     int dTextBackGroundShade;
  108.     int dTextLineShade;
  109.     int dCols;
  110.     double dGap;
  111.     QString tabFillChar;
  112.     double dTabWidth;
  113.     /* ShapeTool */
  114.     QString dPen;
  115.     QString dBrush;
  116.     int dShade;
  117.     int dShade2;
  118.     int dLineArt;
  119.     double dWidth;
  120.     /* Line Tool */
  121.     QString dPenLine;
  122.     int dShadeLine;
  123.     double dWidthLine;
  124.     int dLstyleLine;
  125.     int dStartArrow;
  126.     int dEndArrow;
  127.     /* Regular Polygon Tool */
  128.     int polyC;
  129.     int polyFd;
  130.     double polyF;
  131.     bool polyS;
  132.     double polyR;
  133.     double polyCurvature;
  134.     /* Picture Tool */
  135.     QString dBrushPict;
  136.     int shadePict;
  137.     double scaleX;
  138.     double scaleY;
  139.     bool scaleType;
  140.     bool aspectRatio;
  141.     int lowResType;
  142.     bool useEmbeddedPath;
  143.     /* Magnifier Tool */
  144.     int magMin;
  145.     int magMax;
  146.     int magStep;
  147.     /* Item Duplicate Offset */
  148.     double dispX;
  149.     double dispY;
  150.     /* Rotation Tool constrain value */
  151.     double constrain;
  152. };
  153.  
  154. struct ApplicationPrefs
  155. {
  156.     SCFonts AvailFonts;
  157.     QList<ArrowDesc> arrowStyles;
  158.     QList<PageSet> pageSets;
  159.     ColorList DColors;
  160.     int moveTimeout;
  161.     int Wheelval;
  162.     int AppFontSize;
  163.     int PaletteFontSize;
  164.     bool showPageShadow;
  165.     QColor DpapColor;
  166.     QColor DFrameColor;
  167.     QColor DFrameNormColor;
  168.     QColor DFrameGroupColor;
  169.     QColor DFrameLinkColor;
  170.     QColor DFrameLockColor;
  171.     QColor DFrameAnnotationColor;
  172.     QColor DPageBorderColor;
  173.     QColor DControlCharColor;
  174.     //! Currently used QStyle name
  175.     QString GUI;
  176.     //! System default QStyle name for current instance
  177.     QString GUIsystem;
  178.     guidesPrefs guidesSettings;
  179.     typoPrefs typographicSettings;
  180.     toolPrefs toolSettings;
  181.     CheckerPrefsList checkerProfiles;
  182.     QString curCheckProfile;
  183.     int docUnitIndex;
  184.     windowPrefs mainWinSettings;
  185.     QByteArray mainWinState;
  186.     
  187.     MarginStruct bleeds;
  188.  
  189.     PDFOptions PDF_Options;
  190.     ObjAttrVector defaultItemAttributes;
  191.     ToCSetupVector defaultToCSetups;
  192.     bool SepalT;
  193.     bool SepalN;
  194. //    int PSize;
  195.     bool marginColored;
  196.     QStringList RecentDocs;
  197.     QStringList RecentScrapbooks;
  198.     int numScrapbookCopies;
  199.     bool doCopyToScrapbook;
  200.     bool persistentScrapbook;
  201.     int RecentDCount;
  202.     CMSData DCMSset;
  203.     QMap<QString,Keys> KeyActions;
  204.     QString PrinterName;
  205.     QString PrinterFile;
  206.     QString PrinterCommand;
  207.     QString pageSize;
  208.     int pageOrientation;
  209.     double PageWidth;
  210.     double PageHeight;
  211.     MarginStruct margins;
  212.     int marginPreset;
  213.     int FacingPages;
  214.     int MinWordLen;
  215.     int HyCount;
  216.     QString Language;
  217.     QHash<QString, QString> specialWords;
  218.     QSet<QString> ignoredWords;
  219.     QString guiLanguage;
  220.     bool Automatic;
  221.     bool AutoCheck;
  222.     QString DocDir;
  223.     QString ProfileDir;
  224.     QString ScriptDir;
  225.     QString documentTemplatesDir;
  226.     QMap<QString,QString> GFontSub;
  227.     bool AutoSave;
  228.     int AutoSaveTime;
  229.     double DisScale;
  230.     QString DColorSet;
  231.     QStringList CustomColorSets;
  232.     bool PrPr_Mode;
  233.     bool Gcr_Mode;
  234.     bool PrPr_AntiAliasing;
  235.     bool PrPr_Transparency;
  236.     bool PrPr_C;
  237.     bool PrPr_M;
  238.     bool PrPr_Y;
  239.     bool PrPr_K;
  240.     bool PrPr_InkCoverage;
  241.     int PrPr_InkThreshold;
  242.     QString gs_exe;
  243.     bool gs_AntiAliasText;
  244.     bool gs_AntiAliasGraphics;
  245.     int gs_Resolution;
  246.     QString imageEditorExecutable;
  247.     QString extBrowserExecutable;
  248.     QStringList latexConfigs;
  249.     QMap<QString, QString> latexCommands;
  250.     QString latexEditorExecutable;
  251.     int latexResolution;
  252.     bool latexForceDpi;
  253.     bool latexStartWithEmptyFrames;
  254.     bool ClipMargin;
  255.     bool GCRMode;
  256.     QColor STEcolor;
  257.     QString STEfont;
  258.     MarginStruct scratch;
  259.     double GapHorizontal;
  260.     double GapVertical;
  261. /*    double ScratchLeft;
  262.     double ScratchRight;
  263.     double ScratchTop;
  264.     double ScratchBottom;*/
  265.     bool askBeforeSubstituite;
  266.     bool haveStylePreview;
  267.     bool showToolTips;
  268.     bool showMouseCoordinates;
  269.     // lorem ipsum
  270.     bool useStandardLI;
  271.     int paragraphsLI;
  272.     bool showStartupDialog;
  273.     bool useSmallWidgets; // space savy widgets in palettes - PV
  274.     bool stickyTools;
  275.     bool grayscaleIcons;
  276. };
  277.  
  278. #endif
  279.